package com.zae.pojo;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

/**
 * javaBean之一：用来装sqlMapConfig.xml文件的内容
 */
public class Configuration {

    /**
     * 存储数据源连接信息
     */
    private DataSource dataSource;

    /**
     * 存储加载进来的mapper.xml里面的数据
     * key = statementId = namespace+"."+id
     * value = mapperStatement
     */
    private Map<String,MapperStatement> mapperStatementMap = new HashMap<String, MapperStatement>();


    public DataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public Map<String, MapperStatement> getMapperStatementMap() {
        return mapperStatementMap;
    }

    public void setMapperStatementMap(Map<String, MapperStatement> mapperStatementMap) {
        this.mapperStatementMap = mapperStatementMap;
    }
}
